package io.github.yangyouwang.crud.app.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import io.github.yangyouwang.crud.app.entity.Device;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 设备档案表Mapper 接口
 * </p>
 */
public interface DeviceMapper extends BaseMapper<Device> {
    List<Device> getInfoList(@Param(Constants.WRAPPER) Wrapper wrapper);
    //更新
    int getUpdateById(Map id);
    //插入
    int getInsert(Map param);
    Map getInfoById(Long id);
}
